﻿using System;
using System.Collections.Generic;
using System.Text;
using ATSModel;
using ATSIDAL;
namespace ATSBLL
{

    public class TCalElectricalProperty : BaseService<TCalElectricalPropertyItem>
    {
        private static readonly ITCalElectricalPropertyItem dal = DALFactory.DataAccess.CreateCalElectricalProperty();
        public override void SetCurrentRepository()
        {
            CurrentRepository = dal;
        }

        public IList<TCalElectricalPropertyItem> GetElectricalPropertyItemByDT(DateTime starttime, DateTime stoptime) 
        {
            return dal.GetElectricalPropertyItemByDT(starttime, stoptime);
        }
        public IList<TCalElectricalPropertyItem> GetElectricalPropertyItemBySN(String InstrumentID)
        {
            return dal.GetElectricalPropertyItemBySN(InstrumentID);
        }
        public IList<TCalElectricalPropertyItem> GetElectricalPropertyItem()
        {
            return dal.GetElectricalPropertyItem();

        }

        public IList<TCalElectricalPropertyItem> GetElectricalPropertyItemByDTAndID(DateTime starttime, DateTime stoptime, string InstrumentID)
        {
            return dal.GetElectricalPropertyItemByDTAndID(starttime, stoptime, InstrumentID);
        }
       
    }
}
